package cn.qn.repository.security;

import cn.qn.moudle.security.Menu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: Bryant
 * @Date: 2018/4/17
 * @Description:
 */
@Repository
public interface MenuRepository extends JpaRepository<Menu,Integer> {

    List<Menu> findByParentIdOrderByPriority(int parentId);
}
